#include "morphprop.h"

Morphprop * Morphprop::_singleton = 0;

Morphprop::~Morphprop()
	{
	if( _singleton )
		{
		_singleton = 0;
		}
	}

void Morphprop::init( const char * pth )
	{
	string					path;

	if( !pth ) return;
	_path = pth;
	path = _path;

	_prop[ "Software\\Dialing\\Aross\\DictPath" ] = path + "/Dicts/Aoss";
	_prop[ "Software\\Dialing\\Collocs\\DictPath" ] = path + "/Dicts/Collocs";
	_prop[ "Software\\Dialing\\Concordance\\MainCorpora" ] = path + "t:/moshkov.con";
	_prop[ "Software\\Dialing\\Concordance\\Distributed" ] = path + "/Bin/conc_hosts.cfg";
	_prop[ "Software\\Dialing\\Concordance\\LocalCorpora" ] = path + "/Bin/local_corpora.cfg";
	_prop[ "Software\\Dialing\\DualFreq\\linkA" ] = path + " /Dicts/BinDict/linkA.bin";
	_prop[ "Software\\Dialing\\EngCollocs\\DictPath" ] = path + "/Dicts/EngCollocs";
	_prop[ "Software\\Dialing\\ENGLISH_RUSSIAN_DICT\\DictPath" ] = path + "/Dicts/BinDict/Dict.bin";
	_prop[ "Software\\Dialing\\EngObor\\DictPath" ] = path + "/Dicts/EngObor";
	_prop[ "Software\\Dialing\\EngRusFreqDict\\Hud" ] = path + "/Dicts/BinDict/freq_hud.bin";
	_prop[ "Software\\Dialing\\EngRusFreqDict\\Fin" ] = path + "/Dicts/BinDict/freq_fin.bin";
	_prop[ "Software\\Dialing\\EngRusFreqDict\\Comp" ] = path + "/Dicts/BinDict/freq_comp.bin";
	_prop[ "Software\\Dialing\\graph\\graphlet" ] = path + "/Bin/Lib/graphlet";
	_prop[ "Software\\Dialing\\graph\\tcl_library" ] = path + "/Bin/Lib/tcl8.0";
	_prop[ "Software\\Dialing\\Graphan\\ENamesFile" ] = path + "/Dicts/GraphAn/enames.txt";
	_prop[ "Software\\Dialing\\Graphan\\IdentsFile" ] = path + "/Dicts/GraphAn/idents.txt";
	_prop[ "Software\\Dialing\\Graphan\\SpDicFile" ] = path + "/Dicts/GraphAn/space.dic";
	_prop[ "Software\\Dialing\\Graphan\\Extensions" ] = path + "/Dicts/GraphAn/extensions.txt";
	_prop[ "Software\\Dialing\\Graphan\\Graphmat" ] = path + "/Dicts/GraphAn/graphmat.cfg";
	_prop[ "Software\\Dialing\\Graphan\\AbbrFile" ] = path + "/Dicts/GraphAn/abbr.txt";
	_prop[ "Software\\Dialing\\Graphan\\Keyboard" ] = path + "/Dicts/GraphAn/keyboard.txt";
	_prop[ "Software\\Dialing\\Lemmatizer\\English\\Egramtab" ] = path + "/Dicts/Morph/egramtab.tab";
	_prop[ "Software\\Dialing\\Lemmatizer\\English\\DictPath" ] = path + "/Dicts/Morph/Eng/";
	_prop[ "Software\\Dialing\\Lemmatizer\\German\\DictPath" ] = path + "/Dicts/Morph/Ger/";
	_prop[ "Software\\Dialing\\Lemmatizer\\German\\Ggramtab" ] = path + "/Dicts/Morph/ggramtab.tab";
	_prop[ "Software\\Dialing\\Lemmatizer\\Russian\\DictPath" ] = path + "/Dicts/Morph/Rus/";
	_prop[ "Software\\Dialing\\Lemmatizer\\Russian\\Rgramtab" ] = path + "/Dicts/Morph/rgramtab.tab";
	_prop[ "Software\\Dialing\\Logs\\Main" ] = path + "/";
	_prop[ "Software\\Dialing\\Logs\\Mapost" ] = path + "/";
	_prop[ "Software\\Dialing\\Mapost\\Collocs" ] = path + "/Dicts/SynAn/mapost_collocs.txt";
	_prop[ "Software\\Dialing\\Mapost\\DeadPlurals" ] = path + "/Dicts/SynAn/dead_plurals.txt";
	_prop[ "Software\\Dialing\\Mapost\\Surnames" ] = path + "/Dicts/SynAn/surnames.txt";
	_prop[ "Software\\Dialing\\MorphWizard\\ProjectsDir" ] = path + "/Dicts/SrcMorph";
	_prop[ "Software\\Dialing\\Obor\\DictPath" ] = path + "/Dicts/Obor";
	_prop[ "Software\\Dialing\\RML_THES_COMP\\DictPath" ] = path + "/Thes/Comp";
	_prop[ "Software\\Dialing\\RML_THES_FIN\\DictPath" ] = path + "/Thes/Fin";
	_prop[ "Software\\Dialing\\RML_THES_LOC\\DictPath" ] = path + "/Thes/Loc";
	_prop[ "Software\\Dialing\\RML_THES_OMNI\\DictPath" ] = path + "/Thes/Omni";
	_prop[ "Software\\Dialing\\RML_THES_GERMAN_OMNI\\DictPath" ] = path + "/Thes/GerOmni";
	_prop[ "Software\\Dialing\\Ross\\TextFontName" ] = "FixedSys";
	_prop[ "Software\\Dialing\\Ross\\TextFontSize" ] = "12";
	_prop[ "Software\\Dialing\\Ross\\DictPath" ] = path + "/Dicts/Ross";
	_prop[ "Software\\Dialing\\RUSSIAN_ASPECT_DICT\\DictPath" ] = path + "/Dicts/BinDict/asp_dict.bin";
	_prop[ "Software\\Dialing\\RUSSIAN_DERIV_DICT\\SupAdjDictPath" ] = path + "/Dicts/BinDict/russup.bin";
	_prop[ "Software\\Dialing\\RUSSIAN_DERIV_DICT\\PrefixDictPath" ] = path + "/Dicts/BinDict/deriv_pref.bin";
	_prop[ "Software\\Dialing\\RUSSIAN_DERIV_DICT\\SuffixDictPath" ] = path + "/Dicts/BinDict/deriv_suff.bin";
	_prop[ "Software\\Dialing\\SynAn\\MorphVarMaxCount" ] = "200";
	_prop[ "Software\\Dialing\\Synan\\Daemon" ] = path + "/Bin/synandmn.cfg";
	_prop[ "Software\\Dialing\\Synonyms\\DictPath" ] = path + "/Dicts/BinDict/synonyms.bin";
	_prop[ "Software\\Dialing\\TimeRoss\\DictPath" ] = path + "/Dicts/TimeRoss";
	_prop[ "Software\\Dialing\\VisualSynan\\TextFontName" ] = "FixedSys";
	_prop[ "Software\\Dialing\\VisualSynan\\TextFontSize" ] = "12";
	_prop[ "Software\\Dialing\\Concordance\\DwdsThesaurus" ] = path + "/Thes/Dwds/";
	_prop[ "SearchHtmlHeaderUnix" ] = "<br><input type=submit action=\"http://q/cgi-bin/search\" method=\"post\" value=\"more\" name=\"B2\">";
	_prop[ "SearchHtmlHeaderWindows" ] = "<br><input type=\"submit\" action=\"../scripts/search.exe\" method=\"post\" value=\"more\" name=\"B2\">";
	_prop[ "SearchHtmlHeader" ] = "<br><input type=\"submit\" action=\"../scripts/search.exe\" method=\"post\" value=\"more\" name=\"B2\">";
	_prop[ "Software\\Dialing\\GerObor\\DictPath" ] = path + "/Dicts/GerObor";
	_prop[ "TransRoss" ] = path + "/Bin/TransRoss.txt";
	_prop[ "Software\\Dialing\\GerSynan\\Berufe" ] = path + "/Dicts/GerSynan/berufe.txt";
	_prop[ "SimpleGrammar" ] = path + "/Dicts/SimpleGrammar";
	_prop[ "NetworkTimeOut" ] = "200";

	_singleton = this;
	}
